<!DOCTYPE html>
<html lang="en">
<head>
    
    <meta charset="utf-8">
    <title>initTools - Documentation</title>
    
    
    
        <meta name="keywords" content="webpack ES6 " />
        <meta name="keyword" content="webpack ES6 " />
    
    
    
    <meta property="og:title" content="test2"/>
    <meta property="og:type" content="website"/>
    <meta property="og:image" content=""/>
    
    <meta property="og:url" content=""/>
    
    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
    <script src="scripts/nav.js" defer></script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>

<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
  <div class="navicon"></div>
</label>

<label for="nav-trigger" class="overlay"></label>

<nav class="wrap">
    
    <input type="text" id="nav-search" placeholder="Search" />
    
    <h2><a href="index.html">Home</a></h2><h2><a href="https://gitee.com/shanliangdeYWJ" target="_blank" class="menu-item" id="website_link" >码云shanliangdeYWJ</a></h2><h3>Tutorials</h3><ul><li><a href="tutorial-Overview.html">Overview</a></li></ul><h3>Namespaces</h3><ul><li><a href="initCompute.html">initCompute</a><ul class='methods'><li data-type='method' style='display: none;'><a href="initCompute.html#.div">div</a></li><li data-type='method' style='display: none;'><a href="initCompute.html#.minus">minus</a></li><li data-type='method' style='display: none;'><a href="initCompute.html#.mul">mul</a></li><li data-type='method' style='display: none;'><a href="initCompute.html#.plus">plus</a></li></ul></li><li><a href="initTools.html">initTools</a><ul class='methods'><li data-type='method' style='display: none;'><a href="initTools.html#.digitalize">digitalize</a></li><li data-type='method' style='display: none;'><a href="initTools.html#.getTarget">getTarget</a></li></ul></li></ul><h3>Global</h3><ul><li><a href="global.html#bindEvent">bindEvent</a></li><li><a href="global.html#init">init</a></li><li><a href="global.html#oBtnClick">oBtnClick</a></li><li><a href="global.html#oBtnGroup">oBtnGroup</a></li><li><a href="global.html#oCalculator">oCalculator</a></li><li><a href="global.html#oInputs">oInputs</a></li><li><a href="global.html#oResult">oResult</a></li><li><a href="global.html#renderResult">renderResult</a></li></ul>
</nav>

<div id="main">
    
    <h1 class="page-title">initTools</h1>
    

    




<section>

<header>
    
        <h2>
        initTools
        </h2>
        
    
</header>

<article>
    
        <div class="container-overview">
        
            

<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="tools.js.html">tools.js</a>, <a href="tools.js.html#line33">line 33</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>




            
                <div class="description usertext"><pre class="prettyprint source lang-js"><code>initTools.digitalize(str) 
initTools.getTarget(ev) 
</code></pre></div>
            

            
        
        </div>
    

    

    

    
    
    

     

    

    

    
        <h3 class="subsection-title">Methods</h3>

        
            

    

    <h4 class="name" id=".digitalize"><span class="type-signature">(static) </span>digitalize<span class="signature">(str)</span><span class="type-signature"> &rarr; {number|0}</span></h4>

    




<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="tools.js.html">tools.js</a>, <a href="tools.js.html#line35">line 35</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    <p>文字去除空格转化成数字</p>
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>str</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>

            

            

            <td class="description last"><p>数字字符串 | 字符串</p></td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        
<div class="param-desc">
    <p>数字 | 0</p>
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">number</span>
|

<span class="param-type">0</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".getTarget"><span class="type-signature">(static) </span>getTarget<span class="signature">(ev)</span><span class="type-signature"> &rarr; {EventTarget}</span></h4>

    




<dl class="details">

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="tools.js.html">tools.js</a>, <a href="tools.js.html#line47">line 47</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    <p>返回事件对象</p>
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>ev</code></td>
            

            <td class="type">
            
                
<span class="param-type">event</span>


            
            </td>

            

            

            <td class="description last"><p>事件</p></td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        
<div class="param-desc">
    <p>事件对象</p>
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">EventTarget</span>


    </dd>
</dl>

    



        
    

    

    
</article>

</section>




    
    
</div>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Tue Dec 01 2020 08:42:14 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
<script src="scripts/polyfill.js"></script>
<script src="scripts/linenumber.js"></script>

<script src="scripts/search.js" defer></script>


<script src="scripts/collapse.js" defer></script>


    <link type="text/css" rel="stylesheet" href="./shanliangdeYWJ.css">
    
</body>
</html>